package org.example;

import org.example.service.HotelService;
import org.example.service.impl.HotelServiceImpl;
import org.junit.jupiter.api.Order;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.Ordered;

@SpringBootApplication
@MapperScan(value = "org.example.mapper")
public class GraduateCodeApplication {
    public static void main(String[] args) {
        SpringApplication.run(GraduateCodeApplication.class,args);
    }

    @Bean
    @Order(Ordered.LOWEST_PRECEDENCE)
    public HotelService hotelService()
    {
        return new HotelServiceImpl();
    }

}
